package com.hand.prantice.ssm.service.impl;

import com.hand.prantice.ssm.domain.Role;
import com.hand.prantice.ssm.mapper.RoleMapper;
import com.hand.prantice.ssm.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 马旭阳
 * @date2019/7/16
 */
@Service("roleService")
public class RoleServiceImpl implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> queryAllRole() {
        return roleMapper.queryAllRole();
    }

    @Override
    public void insertRole(Role role) {
        roleMapper.insertRole(role);
    }

    @Override
    public void deleteRole(Long id) {
        roleMapper.deleteRole(id);

    }

    @Override
    public void updateRole(Long id) {
        roleMapper.updateRole(id);
    }
}
